package gae.testjig.dto;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Counter {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key counterId;

	@Persistent private String testId; // I will generate the unique id.
	@Persistent private Integer invocationCount;
	@Persistent private Integer retryCount;
	
	public void setCounterId(Key counterId) {
		this.counterId = counterId;
	}
	public Key getCounterId() {
		return counterId;
	}
	public void setTestId(String testId) {
		this.testId = testId;
	}
	public String getTestId() {
		return testId;
	}
	public Integer getInvocationCount() {
		return invocationCount;
	}
	public void setInvocationCount(Integer invocationCount) {
		this.invocationCount = invocationCount;
	}
	public void setRetryCount(Integer retryCount) {
		this.retryCount = retryCount;
	}
	public Integer getRetryCount() {
		return retryCount;
	}

}
